package service.impl;

import dao.UseDao;
import dao.impl.UserDaoimpl;
import pojo.Users;
import service.UserService;
//在这里做的是逻辑判断
public class UserServiceimpl implements UserService {
    UseDao useDao = new UserDaoimpl();
    @Override
    public boolean login(String username, String password) {
        Users u = useDao.userlogin(username, password);
        if (u != null)
            return true;
        else
            return false;
    }
}
